//
//  RegisterView.m
//  UI16.真.豆瓣
//
//  Created by dllo on 15/10/31.
//  Copyright © 2015年 Amydom. All rights reserved.
//

#import "RegisterView.h"

@implementation RegisterView

-(void)dealloc{
    [_contactField release];
    [_EmileField  release];
    [_contactLabel release];
    [_EmileLabel release];
    [_verifyPWField release];
    [_verifyPWLabel release];
    [_userLabel release];
    [_userField release];
    [_passwordField release];
    [_passwordLabel release];
    
    
    [super dealloc];
    
}

-(instancetype)initWithFrame:(CGRect)frame{
    
    if (self = [super initWithFrame:frame]) {
        [self CreatSubView];
        
    }
    return  self;
    
}

- (void)CreatSubView{
    
    self.userLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 40, 80, 30)];
    self.userLabel.text = @"用户名:";
    [self addSubview:self.userLabel];
    [_userLabel release];
    
    self.passwordLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 110, 80, 30)];
    self.passwordLabel.text = @"密码:";
    [self addSubview:self.passwordLabel];
    [_passwordLabel release];
    
    
    self.verifyPWLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 180, 80, 30)];
    self.verifyPWLabel.text = @"确认密码:";
    [self addSubview:self.verifyPWLabel];
    [_verifyPWLabel release];
    
    self.EmileLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 250, 80, 30)];
    self.EmileLabel.text = @"邮箱:";
    [self addSubview: self.EmileLabel];
    [_EmileLabel release];
    
    self.contactLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 320, 80, 30)];
    self.contactLabel.text = @"联系方式:";
    [self addSubview:self.contactLabel];
    [_contactLabel release];
    
    
    
    
    self.userField =[[UITextField alloc]initWithFrame:CGRectMake(160, 40, 150, 30)];
    self.userField.placeholder = @"请输入用户名";
    self.userField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.userField];
    [_userField release];
    
    self.passwordField = [[UITextField alloc]initWithFrame:CGRectMake(160, 110, 150, 30)];
    self.passwordField.placeholder = @"请输入密码";
    self.passwordField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.passwordField];
    [_passwordField release];

    self.verifyPWField = [[UITextField alloc]initWithFrame:CGRectMake(160, 180, 150, 30)];
    self.verifyPWField.placeholder = @"请再次输入密码";
    self.verifyPWField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.verifyPWField];
    [_verifyPWField release];
    
    self.EmileField = [[UITextField alloc]initWithFrame:CGRectMake(160, 250, 150, 30)];
    self.EmileField.placeholder = @"请输入邮箱";
    self.EmileField.borderStyle =UITextBorderStyleRoundedRect;
    [self addSubview:self.EmileField];
    [_EmileField release];
    
    self.contactField = [[UITextField alloc]initWithFrame:CGRectMake(160, 320, 150, 30)];
    self.contactField.placeholder =@"请输入联系方式";
    self.contactField.borderStyle = UITextBorderStyleRoundedRect;
    [self addSubview:self.contactField];
    [_contactField release];
    
    
    
}

@end
